package com.henry.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "t_book")
public class Book implements Serializable {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField(value = "book_name")
    private String bookName;

    @TableField(value = "book_author")
    private String bookAuthor;

    @TableField(value = "book_price")
    private Integer bookPrice;

    @TableField(value = "book_read_number")
    private Integer bookReadNumber;

    private static final long serialVersionUID = 1L;
}